WPF and Silverlight Edition Basic Library > Menu and ContextMenu > Menu and ContextMenu Elements > Adding a Separator Bar |
Adding a separator bar between two menu items allows you to group items on the control:
To add a separator bar to a C1ContextMenu control, place <c1:C1Separator /> between two <c1:C1MenuItem> tags. The result will resemble the following:
XAML |
Copy Code
|
---|---|
<c1:C1MenuItem Header="File" /> <c1:C1Separator/> <c1:C1MenuItem Header="Options" /> |